
#import "Box2D.h"
#import "BodyNode.h"

#define kMaxAngleDiff 2.4f // in radians

@class Bike;

class BikeContactListener : public b2ContactListener {
public:
	BodyNode *_bike;
	
	BikeContactListener(BodyNode* bike);
	~BikeContactListener();
	
	void BeginContact(b2Contact* contact);
	void EndContact(b2Contact* contact);
	void PreSolve(b2Contact* contact, const b2Manifold* oldManifold);
	void PostSolve(b2Contact* contact, const b2ContactImpulse* impulse);
};